Ext.onReady(function(){
	Ext.QuickTips.init();
	var _window = new Ext.Window({
		renderTo:Ext.getBody(),
		title:'登录',
		frame:true,
		width:260,
		height:130,
		layout:'form',
		labelWidth:30,
		plain:true,//背景颜色
		resizable:false,
		region:'center',
		minimizable:true,
		maximizable:true,
		draggable:true,
		//style : 'background:#ffffff;padding:25px 35px 30px 16px;',
		defaults:{xtype:'textfield', width:180, allowBlank:false,msgTarget:'side'},
		bodyStyle:'padding:5px',
		buttonAlign:'right',
		closable:false,
		closeAction:'hide',
		listeners:{
			'show':function(){
				//alert('Hello Window');
			},
			'hide':function(){
				//alert('hide it');
			}
		
		},
		items:[{
			fieldLabel:'账号',
			cls:"text-user",
			blankText:'请输入用户名'
		},{
			fieldLabel:'密码',
			allowBlank:true,
			cls:"text-lock"
		}],
		buttons:[{
			text:'确定'
		},{
			text:'取消',
			handler:function(){
				_window.hide();
			}
		}]
	});
	_window.show();
});